import axios from '@/utils/request'
export function getProlist (params) {
  return axios.get('pro/list', { params })
}
// 获取用户购物车数据
export function getList (params) {
  return axios.post('cart/list', params)
}
// 更新购物车数量
export function getUpdateNum (params) {
  return axios.post('cart/updatenum', params)
}
// 删除单条购物车数据
export function getRemove (params) {
  return axios.post('cart/remove', params)
}
// 更新当前购物车数据的选中状态
export function getSelectOne (params) {
  return axios.post('cart/selectone', params)
}
// 更新购物车中所有数据的选中状态
export function getSelectAll (params) {
  return axios.post('cart/selectall', params)
}
// 新建订单
export function getAaddOrder (params) {
  return axios.post('order/addOrder', params)
}
